<?php
/**
 * Created by PhpStorm.
 * User: Yieong
 * Date: 14-10-13
 * Time: 上午8:55
 */

class PubTmp {

    public static function menuConfig(){
        return array(
            // 根目录
            array('MenuID' => 1, 'MenuName' => 'DataAnalysis', 'MenuParentID' => 0, 'Url' => 'javascript:;', 'SortNum' => 1),
            array('MenuID' => 2, 'MenuName' => 'OSS', 'MenuParentID' => 0, 'Url' => 'javascript:;', 'SortNum' => 2),
            array('MenuID' => 3, 'MenuName' => 'RealTimeMonitor', 'MenuParentID' => 0, 'Url' => 'javascript:;', 'SortNum' => 3),

            // 数据分析
            array('MenuID' => 4,'Icon' => 'fa-dashboard', 'MenuName' => 'Integration', 'MenuParentID' => 1, 'Url' => 'javascript:;', 'SortNum' => 1),
            array('MenuID' => 5,'Icon' => 'fa-cogs', 'MenuName' => 'Product', 'MenuParentID' => 1, 'Url' => 'javascript:;', 'SortNum' => 2),
            array('MenuID' => 6,'Icon' => 'fa-user', 'MenuName' => 'User', 'MenuParentID' => 1, 'Url' => 'javascript:;', 'SortNum' => 3),
            array('MenuID' => 7,'Icon' => 'fa-maxcdn', 'MenuName' => 'Market', 'MenuParentID' => 1, 'Url' => 'javascript:;', 'SortNum' => 4),
            array('MenuID' => 8,'Icon' => 'fa-qrcode', 'MenuName' => 'Medium', 'MenuParentID' => 1, 'Url' => 'javascript:;', 'SortNum' => 5),
            array('MenuID' => 9,'Icon' => 'fa-usd', 'MenuName' => 'Finance', 'MenuParentID' => 1, 'Url' => 'javascript:;', 'SortNum' => 6),

            // 数据分析 - 综合报表
            array('MenuID' => 10, 'MenuName' => '综合数据报表', 'MenuParentID' => 4, 'Url' => '/ios/?r=complex/index', 'SortNum' => 1),
            array('MenuID' => 11, 'MenuName' => '开服概括', 'MenuParentID' => 4, 'Url' => '/ios/?r=openServer/preview', 'SortNum' => 2),
            array('MenuID' => 12, 'MenuName' => '核心数据', 'MenuParentID' => 4, 'Url' => '/ios/?r=preview/index', 'SortNum' => 3),
            array('MenuID' => 13, 'MenuName' => '分游戏核心数据', 'MenuParentID' => 4, 'Url' => '/ios/?r=preview/byGame', 'SortNum' => 4),
            array('MenuID' => 49, 'MenuName' => '分平台核心数据', 'MenuParentID' => 4, 'Url' => '/ios/?r=preview/byState', 'SortNum' => 4),

            // 数据分析 - 产品数据
            array('MenuID' => 14, 'MenuName' => '产品运营效果日报', 'MenuParentID' => 5, 'Url' => 'javascript:;', 'SortNum' => 1),
            array('MenuID' => 15, 'MenuName' => '产品运营数据综合', 'MenuParentID' => 5, 'Url' => 'javascript:;', 'SortNum' => 2),
            array('MenuID' => 16, 'MenuName' => '开服效果数据', 'MenuParentID' => 5, 'Url' => 'javascript:;', 'SortNum' => 3),

            // 数据分析 - 用户粘度
            array('MenuID' => 17, 'MenuName' => '每日在线峰值', 'MenuParentID' => 6, 'Url' => 'javascript:;', 'SortNum' => 1),
            array('MenuID' => 18, 'MenuName' => '当前在线用户', 'MenuParentID' => 6, 'Url' => 'javascript:;', 'SortNum' => 2),
            array('MenuID' => 19, 'MenuName' => '新老玩家活跃报表', 'MenuParentID' => 6, 'Url' => 'javascript:;', 'SortNum' => 3),
            array('MenuID' => 20, 'MenuName' => '多日留存报表', 'MenuParentID' => 6, 'Url' => '/ios/?r=retain/index', 'SortNum' => 4),

            // 数据分析 - 市场数据
            array('MenuID' => 21, 'MenuName' => '市场推广效果数据', 'MenuParentID' => 7, 'Url' => '/ios/?r=market/effect', 'SortNum' => 1),
            array('MenuID' => 22, 'MenuName' => '市场数据综合报表', 'MenuParentID' => 7, 'Url' => '/ios/?r=market/complex', 'SortNum' => 2),
            array('MenuID' => 23, 'MenuName' => '渠道用户效果报表', 'MenuParentID' => 7, 'Url' => 'javascript:;', 'SortNum' => 3),
            array('MenuID' => 24, 'MenuName' => '渠道费用报表', 'MenuParentID' => 7, 'Url' => 'javascript:;', 'SortNum' => 4),
            array('MenuID' => 25, 'MenuName' => '渠道费用配置表', 'MenuParentID' => 7, 'Url' => 'javascript:;', 'SortNum' => 5),
            array('MenuID' => 26, 'MenuName' => '市场渠道配置表', 'MenuParentID' => 7, 'Url' => 'javascript:;', 'SortNum' => 6),
            array('MenuID' => 27, 'MenuName' => '广告位配置表', 'MenuParentID' => 7, 'Url' => 'javascript:;', 'SortNum' => 7),

            // 数据分析 - 媒介数据
            array('MenuID' => 28, 'MenuName' => '媒体效果分析日报', 'MenuParentID' => 8, 'Url' => 'javascript:;', 'SortNum' => 1),
            array('MenuID' => 29, 'MenuName' => '软文推荐分析', 'MenuParentID' => 8, 'Url' => 'javascript:;', 'SortNum' => 2),
            array('MenuID' => 30, 'MenuName' => '活动推广分析', 'MenuParentID' => 8, 'Url' => 'javascript:;', 'SortNum' => 3),
            array('MenuID' => 31, 'MenuName' => '新手卡推广分析', 'MenuParentID' => 8, 'Url' => 'javascript:;', 'SortNum' => 4),
            array('MenuID' => 32, 'MenuName' => 'SNS推广分析', 'MenuParentID' => 8, 'Url' => 'javascript:;', 'SortNum' => 5),
            array('MenuID' => 33, 'MenuName' => '站点配置管理', 'MenuParentID' => 8, 'Url' => 'javascript:;', 'SortNum' => 6),

            // 数据分析 - 财务数据
            array('MenuID' => 34, 'MenuName' => '财务对账日报', 'MenuParentID' => 9, 'Url' => '/ios/?r=finance/daily', 'SortNum' => 1),
            array('MenuID' => 35, 'MenuName' => '财务对账月报', 'MenuParentID' => 9, 'Url' => '/ios/?r=finance/monthly', 'SortNum' => 2),
            array('MenuID' => 98, 'MenuName' => '货币产出与消耗', 'MenuParentID' => 9, 'Url' => '/ios/?r=finance/currency', 'SortNum' => 4),
            array('MenuID' => 36, 'MenuName' => '充值概括日周月', 'MenuParentID' => 9, 'Url' => 'javascript:;', 'SortNum' => 3),
            array('MenuID' => 37, 'MenuName' => '用户奉献度', 'MenuParentID' => 9, 'Url' => 'javascript:;', 'SortNum' => 5),

            // 实时监控
            array('MenuID' => 38, 'Icon' => 'fa-area-chart', 'MenuName' => 'RealTime', 'MenuParentID' => 3, 'Url' => 'javascript:;', 'SortNum' => 1),
            array('MenuID' => 39, 'Icon' => 'fa-laptop', 'MenuName' => 'Monitor', 'MenuParentID' => 3, 'Url' => 'javascript:;', 'SortNum' => 2),

            // 实时监控 - 实时数据
            array('MenuID' => 40, 'MenuName' => '5分钟实时数据', 'MenuParentID' => 38, 'Url' => '/ga/?r=realTime/fiveMinutes', 'SortNum' => 2),
            array('MenuID' => 41, 'MenuName' => '小时实时数据', 'MenuParentID' => 38, 'Url' => 'javascript:;', 'SortNum' => 2),
            array('MenuID' => 42, 'MenuName' => '用户在线', 'MenuParentID' => 38, 'Url' => 'javascript:;', 'SortNum' => 4),
            array('MenuID' => 43, 'MenuName' => '实时访问用户', 'MenuParentID' => 38, 'Url' => '/ios/?r=realTime/visit', 'SortNum' => 5),
            array('MenuID' => 44, 'MenuName' => '渠道来源用户', 'MenuParentID' => 38, 'Url' => 'javascript:;', 'SortNum' => 6),

            // 实时监控 - 用户监控
            array('MenuID' => 45, 'MenuName' => '异常用户告警', 'MenuParentID' => 39, 'Url' => 'javascript:;', 'SortNum' => 1),
            array('MenuID' => 46, 'MenuName' => '来访用户', 'MenuParentID' => 39, 'Url' => 'javascript:;', 'SortNum' => 2),
            array('MenuID' => 47, 'MenuName' => '异常IP预警', 'MenuParentID' => 39, 'Url' => 'javascript:;', 'SortNum' => 3),
            array('MenuID' => 48, 'MenuName' => '反欺诈监控', 'MenuParentID' => 39, 'Url' => 'javascript:;', 'SortNum' => 4),

            // 运营支撑
            array('MenuID' => 50, 'Icon' => 'fa-user', 'MenuName' => 'User', 'MenuParentID' => 2, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 51, 'Icon' => 'fa-jpy', 'MenuName' => 'Payment', 'MenuParentID' => 2, 'Url' => 'javascript:;', 'Sort' => 2),
            array('MenuID' => 52, 'Icon' => 'fa-keyboard-o', 'MenuName' => 'Management', 'MenuParentID' => 2, 'Url' => 'javascript:;', 'Sort' => 3),
            array('MenuID' => 53, 'Icon' => 'fa-newspaper-o', 'MenuName' => 'Advert', 'MenuParentID' => 2, 'Url' => 'javascript:;', 'Sort' => 4),
            array('MenuID' => 54, 'Icon' => 'fa-puzzle-piece', 'MenuName' => 'Interface', 'MenuParentID' => 2, 'Url' => 'javascript:;', 'Sort' => 5),
            array('MenuID' => 55, 'Icon' => 'fa-gamepad', 'MenuName' => 'Activity', 'MenuParentID' => 2, 'Url' => 'javascript:;', 'Sort' => 6),
            array('MenuID' => 56, 'Icon' => 'fa-share-alt', 'MenuName' => 'CPS', 'MenuParentID' => 2, 'Url' => 'javascript:;', 'Sort' => 7),

            // 运营支撑 - 玩家管理
            array('MenuID' => 57, 'MenuName' => '会员信息管理', 'MenuParentID' => 50, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 58, 'MenuName' => '异常会员管理', 'MenuParentID' => 50, 'Url' => 'javascript:;', 'Sort' => 2),
            array('MenuID' => 59, 'MenuName' => 'VIP会员查询', 'MenuParentID' => 50, 'Url' => 'javascript:;', 'Sort' => 3),
            array('MenuID' => 60, 'MenuName' => 'Beta帐号管理', 'MenuParentID' => 50, 'Url' => 'javascript:;', 'Sort' => 4),

            // 运营支撑 - 支付管理
            array('MenuID' => 61, 'MenuName' => '支付订单查询', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 62, 'MenuName' => '联运订单查询', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 2),
            array('MenuID' => 63, 'MenuName' => '免费金订单查询', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 3),
            array('MenuID' => 64, 'MenuName' => 'VIP订阅订单查询', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 4),
            array('MenuID' => 65, 'MenuName' => '退款订单查询', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 5),
            array('MenuID' => 66, 'MenuName' => '退款订单管理', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 6),
            array('MenuID' => 67, 'MenuName' => '手工发货', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 7),
            array('MenuID' => 68, 'MenuName' => '主动退款', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 8),
            array('MenuID' => 69, 'MenuName' => 'VIP用户退订审核', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 9),
            array('MenuID' => 70, 'MenuName' => '货币汇率管理', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 9),
            array('MenuID' => 71, 'MenuName' => '支付渠道管理', 'MenuParentID' => 51, 'Url' => 'javascript:;', 'Sort' => 9),

            // 运营支撑 - 平台管理
            array('MenuID' => 72, 'MenuName' => '游戏管理', 'MenuParentID' => 52, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 73, 'MenuName' => '选服页管理', 'MenuParentID' => 52, 'Url' => 'javascript:;', 'Sort' => 2),
            array('MenuID' => 74, 'MenuName' => '开服配置', 'MenuParentID' => 52, 'Url' => 'javascript:;', 'Sort' => 3),
            array('MenuID' => 75, 'MenuName' => '游戏分类管理', 'MenuParentID' => 52, 'Url' => 'javascript:;', 'Sort' => 4),
            array('MenuID' => 76, 'MenuName' => '游戏合服信息', 'MenuParentID' => 52, 'Url' => 'javascript:;', 'Sort' => 5),
            array('MenuID' => 77, 'MenuName' => '维护公告管理', 'MenuParentID' => 52, 'Url' => 'javascript:;', 'Sort' => 6),

            // 运营支撑 - 广告管理
            array('MenuID' => 78, 'MenuName' => '落地页面（广告页）管理', 'MenuParentID' => 53, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 79, 'MenuName' => '广告链接管理', 'MenuParentID' => 53, 'Url' => 'javascript:;', 'Sort' => 2),
            array('MenuID' => 80, 'MenuName' => '广告创意管理', 'MenuParentID' => 53, 'Url' => 'javascript:;', 'Sort' => 3),
            array('MenuID' => 81, 'MenuName' => '广告渠道管理', 'MenuParentID' => 53, 'Url' => 'javascript:;', 'Sort' => 4),
            array('MenuID' => 82, 'MenuName' => '渠道费用配置管理', 'MenuParentID' => 53, 'Url' => 'javascript:;', 'Sort' => 5),
            array('MenuID' => 83, 'MenuName' => '广告位配置表', 'MenuParentID' => 53, 'Url' => 'javascript:;', 'Sort' => 6),
            array('MenuID' => 84, 'MenuName' => '关键词配置管理', 'MenuParentID' => 53, 'Url' => 'javascript:;', 'Sort' => 7),

            // 运营支撑 - 接口管理
            array('MenuID' => 85, 'MenuName' => '平台接入接口管理', 'MenuParentID' => 54, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 86, 'MenuName' => '游戏接入接口测试', 'MenuParentID' => 54, 'Url' => 'javascript:;', 'Sort' => 2),
            array('MenuID' => 87, 'MenuName' => '游戏方key管理', 'MenuParentID' => 54, 'Url' => 'javascript:;', 'Sort' => 3),

            // 运营支撑 - 活动管理
            array('MenuID' => 88, 'MenuName' => '活动模板管理', 'MenuParentID' => 55, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 89, 'MenuName' => '活动配置', 'MenuParentID' => 55, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 90, 'MenuName' => '活动参与日志查询', 'MenuParentID' => 55, 'Url' => 'javascript:;', 'Sort' => 1),

            // CPS管理
            array('MenuID' => 91, 'MenuName' => 'CPS用户查询', 'MenuParentID' => 56, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 92, 'MenuName' => 'CPS用户订单', 'MenuParentID' => 56, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 93, 'MenuName' => 'CPS推广配置', 'MenuParentID' => 56, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 94, 'MenuName' => '广告主注册信息', 'MenuParentID' => 56, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 95, 'MenuName' => '佣金设置', 'MenuParentID' => 56, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 96, 'MenuName' => 'CPS数据报表', 'MenuParentID' => 56, 'Url' => 'javascript:;', 'Sort' => 1),
            array('MenuID' => 97, 'MenuName' => 'CPS分成报表', 'MenuParentID' => 56, 'Url' => 'javascript:;', 'Sort' => 1),
        );
    }
    public static function menuConfig2(){
        return array(
            // 根目录
            array('MenuID' => 1, 'MenuName' => '运营数据', 'MenuParentID' => 0, 'Url' => 'javascript:;', 'SortNum' => 1),
            array('MenuID' => 2, 'MenuName' => '运营管理', 'MenuParentID' => 0, 'Url' => 'javascript:;', 'SortNum' => 2),

            array('MenuID' => 3, 'MenuName' => '综合数据', 'MenuParentID' => 1, 'Url' => 'javascript:;'),
            array('MenuID' => 4, 'MenuName' => '实时数据', 'MenuParentID' => 1, 'Url' => 'javascript:;'),
            array('MenuID' => 5, 'MenuName' => '游戏数据', 'MenuParentID' => 1, 'Url' => 'javascript:;'),
            array('MenuID' => 6, 'MenuName' => '基础日志', 'MenuParentID' => 1, 'Url' => 'javascript:;'),

            array('MenuID' => 7, 'MenuName' => '玩家管理', 'MenuParentID' => 2, 'Url' => 'javascript:;'),

            array('MenuID' => 8, 'MenuName' => '综合数据报表', 'MenuParentID' => 3, 'Url' => '/ga/?r=complex/index'),
            array('MenuID' => 9, 'MenuName' => '核心数据', 'MenuParentID' => 3, 'Url' => 'javascript:;'),
            array('MenuID' => 10, 'MenuName' => '多日留存报表', 'MenuParentID' => 3, 'Url' => '/ga/?r=retain/index'),
            array('MenuID' => 29, 'MenuName' => '市场预热转化数据', 'MenuParentID' => 3, 'Url' => '/ga/?r=market/transfer'),

            array('MenuID' => 12, 'MenuName' => '5分钟实时数据', 'MenuParentID' => 4, 'Url' => 'javascript:;'),
            array('MenuID' => 13, 'MenuName' => '小时数据', 'MenuParentID' => 4, 'Url' => 'javascript:;'),

            array('MenuID' => 14, 'MenuName' => '货币产出与消费', 'MenuParentID' => 5, 'Url' => '/ga/?r=coin/index'),
            array('MenuID' => 26, 'MenuName' => '商城购买', 'MenuParentID' => 5, 'Url' => '/ga/?r=shop/index'),
            array('MenuID' => 15, 'MenuName' => '物品获得与消耗', 'MenuParentID' => 5, 'Url' => '/ga/?r=goods/index'),
            array('MenuID' => 27, 'MenuName' => '区间等级分布', 'MenuParentID' => 5, 'Url' => '/ga/?r=level/index'),
            array('MenuID' => 28, 'MenuName' => '等级滞留', 'MenuParentID' => 5, 'Url' => '/ga/?r=level/distribution'),
            array('MenuID' => 30, 'MenuName' => '等级分布', 'MenuParentID' => 5, 'Url' => '/ga/?r=level/independent'),
            array('MenuID' => 31, 'MenuName' => '多指标等级分布', 'MenuParentID' => 5, 'Url' => '/ga/?r=level/independentKPI'),
            array('MenuID' => 16, 'MenuName' => '在线时长', 'MenuParentID' => 5, 'Url' => '/ga/?r=online/index'),
            array('MenuID' => 17, 'MenuName' => '新手留存', 'MenuParentID' => 5, 'Url' => 'javascript:;'),
            array('MenuID' => 18, 'MenuName' => '玩家流失分析', 'MenuParentID' => 5, 'Url' => 'javascript:;'),

            array('MenuID' => 19, 'MenuName' => '玩家注册日志', 'MenuParentID' => 6, 'Url' => 'javascript:;'),
            array('MenuID' => 20, 'MenuName' => '玩家登入/出日志', 'MenuParentID' => 6, 'Url' => 'javascript:;'),
            array('MenuID' => 21, 'MenuName' => '玩家充值日志', 'MenuParentID' => 6, 'Url' => 'javascript:;'),
            array('MenuID' => 22, 'MenuName' => '货币流水日志', 'MenuParentID' => 6, 'Url' => 'javascript:;'),
            array('MenuID' => 23, 'MenuName' => '物品流水日志', 'MenuParentID' => 6, 'Url' => 'javascript:;'),
            array('MenuID' => 24, 'MenuName' => '物品购买日志', 'MenuParentID' => 6, 'Url' => 'javascript:;'),

            array('MenuID' => 25, 'MenuName' => '玩家信息查询', 'MenuParentID' => 7, 'Url' => 'javascript:;'),
        );

    }


    public static function getMyMenu($id){
        if($id == 'ga'){
            $menuTmp = self::menuConfig2();
        }else{
            $menuTmp = self::menuConfig();
        }
        $menuTree = array();

        foreach($menuTmp as $v){
            $menuTree['M'.$v['MenuParentID']]['M'.$v['MenuID']] = $v;
        }

        return $menuTree;
    }

    public static function getLanguage(){
        return array(
            'en' => array('LanguageName' => 'English', 'Icon' => 'http://www.r2games.com/images/en.jpg'),
            'fr' => array('LanguageName' => 'Français', 'Icon' => 'http://www.r2games.com/images/fr.png'),
            'de' => array('LanguageName' => 'Deutsch', 'Icon' => 'http://www.r2games.com/images/de.png'),
            'ar' => array('LanguageName' => ' العربية', 'Icon' => 'http://www.r2games.com/images/ar.jpg')
        );
    }

    public static function getGame($language=false){
        return array(
            'ST' => array(
                'GameSrc'       => 'ST',
                'IconUrl'       => 'http://static.r2games.com/gameimgs/st_beta_logo.jpg',
                'GameName'      => '暴风王座',
                'GameNameEn'    => 'Storm Throne'
            ),
//            'swzl' => array('GameName' => '死亡之路'),
        );
    }
} 